package zhihuilan.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class MyFactoryProductDto {
    private Integer id;
    private Integer factoryid;
    private Integer shopid;
    private Integer productid;
    private Integer pid1;
    private String pid1name;
    private Integer pid2;
    private String pid2name;
    private Integer pid3;
    private String pid3name;
    private Integer pid4;
    private String pid4name;
    private Integer pid5;
    private String pid5name;
    private String title;
    private String unit;
    private Double price;
    @JsonProperty("unit_price")
    @JSONField(name="unit_price")
    private Integer unitPrice;
    @JsonProperty("price_q")
    @JSONField(name="price_q")
    private Double priceQ;
    @JsonProperty("unit_price_q")
    @JSONField(name="unit_price_q")
    private Integer unitPriceQ;
    @JsonProperty("price_z")
    @JSONField(name="price_z")
    private Double priceZ;
    @JsonProperty("unit_price_z")
    @JSONField(name="unit_price_z")
    private Integer unitPriceZ;
    private Double price1;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addtime;
    private Integer status;
    private Integer stock;
    private Integer istax;
    private Double taxrate;
    @JsonProperty("price_name")
    @JSONField(name="price_name")
    private String priceName;
    @JSONField(name="unit_pricename")
    @JsonProperty("unit_pricename")
    private String unitPricename;
    @JsonProperty("unit_price_qname")
    @JSONField(name="unit_price_qname")
    private String unitPriceQname;
    @JsonProperty("unit_price_zname")
    @JSONField(name="unit_price_zname")
    private String unitPriceZname;
    private Object factory;
    private Integer sort;
}
